package com.registration.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.sql.Time;
import java.util.Date;

public class HealthReminderBean {
    private Integer id;

    private Integer user_id;
    private Integer patient_id;

    private String patient_name;
    private String remind_type;
    private String content;
    private String repeat_strategy;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date once_datetime;

    private String daily_time;


    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date  create_time;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date update_time;

    @Override
    public String toString() {
        return "HealthReminderBean{" +
                "id=" + id +
                ", user_id=" + user_id +
                ", patient_id=" + patient_id +
                ", patient_name='" + patient_name + '\'' +
                ", remind_type='" + remind_type + '\'' +
                ", content='" + content + '\'' +
                ", repeat_strategy='" + repeat_strategy + '\'' +
                ", once_datetime=" + once_datetime +
                ", daily_time='" + daily_time + '\'' +
                ", create_time=" + create_time +
                ", update_time=" + update_time +
                '}';
    }

    public String getPatient_name() {
        return patient_name;
    }

    public void setPatient_name(String patient_name) {
        this.patient_name = patient_name;
    }

    public Integer getUser_id() {
        return user_id;
    }

    public void setUser_id(Integer user_id) {
        this.user_id = user_id;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getPatient_id() {
        return patient_id;
    }

    public void setPatient_id(Integer patient_id) {
        this.patient_id = patient_id;
    }

    public String getRemind_type() {
        return remind_type;
    }

    public void setRemind_type(String remind_type) {
        this.remind_type = remind_type;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getRepeat_strategy() {
        return repeat_strategy;
    }

    public void setRepeat_strategy(String repeat_strategy) {
        this.repeat_strategy = repeat_strategy;
    }

    public Date getOnce_datetime() {
        return once_datetime;
    }

    public void setOnce_datetime(Date once_datetime) {
        this.once_datetime = once_datetime;
    }


    public String getDaily_time() {
        return daily_time;
    }

    public void setDaily_time(String daily_time) {
        this.daily_time = daily_time;
    }


    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public Date getUpdate_time() {
        return update_time;
    }

    public void setUpdate_time(Date update_time) {
        this.update_time = update_time;
    }
}
